﻿<%@ Page Language="C#" AutoEventWireup="true" CodeBehind="FormPrinting.aspx.cs" Inherits="VSM.Parts.FormPrinting" %>

<%@ Register Assembly="CrystalDecisions.Web, Version=13.0.2000.0, Culture=neutral, PublicKeyToken=692fbea5521e1304"
    Namespace="CrystalDecisions.Web" TagPrefix="CR" %>
<%@ Register Assembly="Microsoft.ReportViewer.WebForms, Version=10.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a"
    Namespace="Microsoft.Reporting.WebForms" TagPrefix="rsweb" %>
<%@ Register Assembly="AjaxControlToolkit" Namespace="AjaxControlToolkit" TagPrefix="ajaxToolkit" %>
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml">
<head runat="server">
    <title></title>
    <script src="/Scripts/jquery-1.7.1.js" type="text/javascript"></script>
    <script type="text/javascript" src="/js/main.js"></script>
    <script type="text/javascript" src="/js/common.js"></script>
    <link href="/skin/common.css" rel="stylesheet" type="text/css" />
    <link rel="stylesheet" href="/Styles/Styles.css" type="text/css" />
</head>
<body>
    <form id="form1" runat="server">
    <div>
        <ajax:ScriptManager ID="ScriptManager1" EnablePartialRendering="true" runat="server" />
        <script type="text/javascript" language="javascript">
            var ModalProgress = '<%= ModalProgress.ClientID %>';         
        </script>
        <script type="text/javascript" src="../../../Scripts/jsUpdateProgress.js"></script>
        <asp:Panel ID="panelUpdateProgress" runat="server" CssClass="updateProgress">
            <asp:UpdateProgress ID="UpdateProg1" DisplayAfter="0" runat="server">
                <ProgressTemplate>
                    <div style="position: relative; top: 30%; text-align: center;">
                        <img src="../../../Images/loading1.gif" style="vertical-align: middle" alt="Processing"
                            height="50px" width="50px" />
                    </div>
                </ProgressTemplate>
            </asp:UpdateProgress>
        </asp:Panel>
        <ajaxToolkit:ModalPopupExtender ID="ModalProgress" runat="server" TargetControlID="panelUpdateProgress"
            BackgroundCssClass="modalBackground" PopupControlID="panelUpdateProgress" />
        <asp:UpdatePanel ID="updatePanel" runat="server" UpdateMode="Conditional">
            <ContentTemplate>
                <table style="width:100%;">
                    <tr>
                        <td align="center" valign="top">
                            <asp:HiddenField ID="hdnDocEntry" runat="server" />
                            <asp:HiddenField ID="hdnDocType" runat="server" />
                            <asp:HiddenField ID="hdnPrintType" runat="server" />
                            <p />
                            <asp:Button ID="btnPrint" runat="server" OnClick="btnPrint_Click" Text="Print" Width="74px" />
                            <asp:Label ID="lblError" runat="server" ForeColor="Red" Style="font-weight: 700" />
                            <p />
                            <asp:HiddenField ID="hf_GeneralID" runat="server" ClientIDMode="Static" />
                            <CR:CrystalReportViewer ID="CrystalReportViewer1" runat="server" AutoDataBind="true"
                                EnableDrillDown="False" GroupTreeStyle-ShowLines="False" HasCrystalLogo="False"
                                HasDrillUpButton="False" HasRefreshButton="True" HasToggleGroupTreeButton="False"
                                Height="100%" PrintMode="ActiveX" Width="100%" />
                        </td>
                    </tr>
                </table>
                 <asp:Timer ID="Timer1" runat="server" Interval="1" OnTick="Timer1_Tick" />
            </ContentTemplate>
        </asp:UpdatePanel>
    </div>
    </form>
</body>
</html>
